#include<bits/stdc++.h>
#define LL long long
using namespace std;
LL n,r[100001],ans,vis[100001];
int main() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cin>>n;
    for(LL i=1;i<=n;i++) {
        cin>>r[i];
        vis[i]=1;
    }
    sort(r+1,r+1+n);
    LL j=2;
    for(LL i=1;i<=n;i++) {
        while(vis[i] && j<=n) {
            if(r[j]==r[i]) {
                j++;
                continue;
            }
            vis[i]=0;
            j++;
        }
    }
    LL ans=0;
    for(LL i=1;i<=n;i++) {
        ans+=vis[i];
    }
    cout<<ans;

    return 0;
}